#pragma once
#include "afxwin.h"

class CBitmapEx :
	public CBitmap
{
private:
	CSize m_sizeBitmap;
public:
	CBitmapEx(void);
	~CBitmapEx(void);

	BOOL AttachBitmap(HGDIOBJ hBitmap);

	BOOL CreateCompatibleBitmap(CDC* pDC, int nWidth, int nHeight);
	BOOL LoadBitmap(LPCTSTR lpszResource);
	BOOL LoadBitmapDirect(LPCTSTR lpszFilePath);

	inline const CSize& GetSize() const{
		return m_sizeBitmap;
	}
};
